package com.byapp.fast.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum ResultEnum implements CodeEnum<Integer> {

    UNKNOWN_ERROR(-1, "网络异常"),
    SUCCESS(0, "SUCCESS"),
    ERROR(1, "FAILURE"),
    ILLEGAL_PARAM(100, "非法参数"),;

    private Integer code;
    private String msg;

}
